<template>
  <div>
    <!-- 路由出口 -->
    <router-view> </router-view>
    <van-tabbar v-model="active" placeholder route v-if="$route.meta.showTab">
      <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
      <van-tabbar-item icon="van-icon van-icon-chat-o" to="/qa">问答</van-tabbar-item>
      <van-tabbar-item icon="play-circle-o" to="/movie">视频</van-tabbar-item>
      <van-tabbar-item icon="manager-o" to="/user">用户</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data(){
    return {
      active:0
    }
  }
};
</script>

<style>
</style>
